package edu.umd.ion.wavemeter.service;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * Base class for Server configuration Parameters
 * @author pmaunz
 *
 */
public class ServerParameters implements IsSerializable {
	protected boolean Editable;
	/**
	 * Timeout in ms after which channels that do not show a reading are deactivated
	 */
	public long UnderexposedTimeout = 30000;

	/**
	 * Is the client allowed to change the settings on the server.
	 * Only clients running on the same host as the server are allowed.
	 * @return editable true if the client is allowed to change the server settings
	 */
	public boolean isEditable() {
		return Editable;
	}

	/**
	 * Set the editable flag
	 * @param editable
	 */
	public void setEditable(boolean editable) {
		Editable = editable;
	}
}
